package com.ruoyi.system.domain;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import lombok.Data;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 销售库存对象 sales_inventory
 * 
 * @author ruoyi
 * @date 2022-10-31
 */
@Data
@ApiModel(value = "销售库存对象")
public class SalesInventory extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /**  */
    @ApiModelProperty(value = "")
    private Long id;

    /**  */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "", width = 30, dateFormat = "yyyy-MM-dd")
    @ApiModelProperty(value = "")
    private Date modifyTime;

    /**  */
    @Excel(name = "")
    @ApiModelProperty(value = "")
    private String creator;

    /**  */
    @Excel(name = "")
    @ApiModelProperty(value = "")
    private String modifier;

    /**  */
    @Excel(name = "")
    @ApiModelProperty(value = "")
    private String title;

    /**  */
    @Excel(name = "")
    @ApiModelProperty(value = "")
    private String address;

    /** 货物数量 */
    @Excel(name = "货物数量")
    @ApiModelProperty(value = "货物数量")
    private String count;

    /** 1本人2代替 */
    @Excel(name = "1本人2代替")
    @ApiModelProperty(value = "1本人2代替")
    private Integer saleserType;

    /** 货物编码 */
    @Excel(name = "货物编码")
    @ApiModelProperty(value = "货物编码")
    private String cargoCode;

    /** 货物名称 */
    @Excel(name = "货物名称")
    @ApiModelProperty(value = "货物名称")
    private String cargoName;

    /** 货物id */
    @Excel(name = "货物id")
    @ApiModelProperty(value = "货物id")
    private Long cargoId;

    /** 价格 */
    @Excel(name = "价格")
    @ApiModelProperty(value = "价格")
    private String price;

    /**  */
    @Excel(name = "")
    @ApiModelProperty(value = "")
    private String url;

    /** 天数 */
    @Excel(name = "天数")
    @ApiModelProperty(value = "天数")
    private Integer days;

    /** 限定联系数量 */
    @Excel(name = "限定联系数量")
    @ApiModelProperty(value = "限定联系数量")
    private Integer contectCount;

    /** 小程序用户id */
    @Excel(name = "小程序用户id")
    @ApiModelProperty(value = "小程序用户id")
    private String memberId;

    /** 小程序用户手机号 */
    @Excel(name = "小程序用户手机号")
    @ApiModelProperty(value = "小程序用户手机号")
    private String memberPhone;

    /** 小程序用户id */
    @Excel(name = "小程序用户id")
    @ApiModelProperty(value = "小程序用户id")
    private String outerId;

    /** 开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    @ApiModelProperty(value = "开始时间")
    private Date startTime;

    /** 结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    @ApiModelProperty(value = "结束时间")
    private Date endTime;

    /** 已连数量 */
    @Excel(name = "已连数量")
    @ApiModelProperty(value = "已连数量")
    private Long quoteNum;

    /** 收藏次数 */
    @Excel(name = "收藏次数")
    @ApiModelProperty(value = "收藏次数")
    private Long lovedNumber;

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("createTime", getCreateTime())
            .append("modifyTime", getModifyTime())
            .append("creator", getCreator())
            .append("modifier", getModifier())
            .append("title", getTitle())
            .append("address", getAddress())
            .append("count", getCount())
            .append("saleserType", getSaleserType())
            .append("cargoCode", getCargoCode())
            .append("cargoName", getCargoName())
            .append("cargoId", getCargoId())
            .append("price", getPrice())
            .append("remark", getRemark())
            .append("url", getUrl())
            .append("days", getDays())
            .append("contectCount", getContectCount())
            .append("memberId", getMemberId())
            .append("memberPhone", getMemberPhone())
            .append("outerId", getOuterId())
            .append("startTime", getStartTime())
            .append("endTime", getEndTime())
            .append("quoteNum", getQuoteNum())
            .append("lovedNumber", getLovedNumber())
            .toString();
    }
}
